import Vue from 'vue';
import Vuex from 'vuex';
Vue.use(Vuex);
export default new Vuex.Store({
	state: {

		systemInfo: {
			screenWidth: 375,
			statusBarHeight: 0,
			pixelRatio: 2,
			model: '',
		},
		userInfo: {},
		language:'ch'

	},
	actions: {
		// 退出
		logout() {
			uni.removeStorageSync('token');
			uni.removeStorageSync('deskId');
			uni.reLaunch({
				url: '/pages/login/index'
			})
			
		},
	}
})